package com.planet.biz;

import com.planet.db.dao.YhcclrDOMapper;
import com.planet.db.model.YhcclrDO;
import com.planet.facade.YhcclrBiz;
import com.planet.query.YhcclrQuery;
import com.planet.utils.CommonConverter;
import com.planet.vo.YhcclrVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * Created by jiayazi on 17/11/13.
 */
@Component("yhcclrBiz")
public class YhcclrBizImpl implements YhcclrBiz {

    @Autowired
    YhcclrDOMapper yhcclrDOMapper;

    @Override
    public int insertCheckInfo(YhcclrQuery yhcclrQuery) {
        return yhcclrDOMapper.insertCheckInfo(yhcclrQuery);
    }

    @Override
    public YhcclrVO getCheckInfo(String id) {
        YhcclrDO yhcclrDO = yhcclrDOMapper.getCheckInfo(id);
        YhcclrVO yhcclrVO = new YhcclrVO();
        CommonConverter.convert(yhcclrVO,yhcclrDO);
        return yhcclrVO;
    }
}
